import Order from '@/pages/Order'
import OrderList from '@/pages/Order/Order-list'
import OrderWaitDelivery from '@/pages/Order/Order-wait-delivery'
import OrderDeliveryed from '@/pages/Order/Order-deliveryed'
import OrderWaitReceiving from '@/pages/Order/Order-wait-receiving'
import OrderReceived from '@/pages/Order/Order-received'
import OrderClosed from '@/pages/Order/Order-closed'

const OrderRoutes = {
  path: 'Order',
  component: Order,
  redirect: 'Order/list',
  children: [
    {
      path: 'list',
      component: OrderList
    },
    {
      path: 'wait-delivery',
      component: OrderWaitDelivery
    },
    {
      path: 'deliveryed',
      component: OrderDeliveryed
    },
    {
      path: 'wait-receiving',
      component: OrderWaitReceiving
    },
    {
      path: 'received',
      component: OrderReceived
    }, {
      path: 'closed',
      component: OrderClosed
    }
  ]
}

export default OrderRoutes
